import store from "@/store";
export default (Vue) => {
  Vue.prototype.$custom = {};
  // 获取一个个性化配置的值
  Vue.prototype.$custom.get = function (group, setting) {
    let customList = store.getters.getCustomList;
    let GroupFind = customList.find((i) => i.id == group);
    if (GroupFind) {
      let settingFind = GroupFind.setting.find((i) => i.id == setting);
      if (settingFind) {
        return settingFind.value;
      } else {
        return null;
      }
    } else {
      return null;
    }
  };
  Vue.prototype.$custom.set = function () {};
};
